﻿@model MvcApplication6.Models.MenuL3Model

@{
    ViewBag.Title = "EditMenuL3";
}


<link href="../../Content/css/nn-styles.css" rel="stylesheet" type="text/css"/>
<title>Add Menu | CÔNG TY TNHH TM DV KT CÔNG NGHỆ AN PHÚ </title>

@{
    if (@ViewBag.success == "OK")
   {
      <script type="text/javascript">
          alert("Update thành công..... ");
      </script>
   }
}

<div>
    <a style="margin-left:127px;margin-top:5px;" href="http://aptechpro.vn/"><b>Trang chủ</b></a>   
    <h1 class="ad-title"><center>Add Menu L3</center></h1>
    @using (Html.BeginForm("EditMenuL3", "Admin", FormMethod.Post, new { id = "add_news" }))
    {
        @Html.AntiForgeryToken() <!--Chống giả lập yêu cầu -->
        @Html.ValidationSummary(true) <!-- hiện thị kiểm lỗi phía Server-->
        
        @Html.TextBoxFor(model => model.Id, new { id = "Id", style = "display: none;" })  
        <fieldset>
            <p>
                <label for="name"><b>List menu 2:</b></label>
                @Html.DropDownList("Id_l2", null, "--Chọn list menu--", new { style = "width:300px", id = "dName1", name = "dName1", tabindex = "0", @disabled = "disabled" })
                @*@Html.ValidationMessageFor(model => model.Id_l2)*@
                @Html.HiddenFor(mode => mode.Id_l2, new { @Value = ViewBag.chonID })
            </p>

            <p>
                <label for="name"><b>Name:</b></label>
                @Html.TextBoxFor(model => model.Name, new { name = "name", id = "name", type = "text", style = "width:292px" })
                @Html.ValidationMessageFor(model => model.Name)
            </p>

            <p>
                <label for="position"><b>Vị trí:</b></label>
                @Html.TextBoxFor(model => model.Position, new { name = "position", id = "position", type = "number", style = "width:294px" })
                @Html.ValidationMessageFor(model => model.Position)
            </p>

            <div class="btn-submit">
                <input type="submit" name="Command" class="btn_contact" value="Edit" />
            </div>
        </fieldset> 
    }
</div><!-- end.content-->